 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn.shun.local;

 import cn.shun.dto.PageInfoDto;

 /**
  * <p>Project: sboot_2023-cn.shun.local-PageInfoThreadLocal
  * <p>Powered by yishun On 2023-04-14 20:16:29
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 public class PageInfoThreadLocal {
     private static ThreadLocal<PageInfoDto> pageInfoDtoThreadLocal = new ThreadLocal<>();


     public static void set(PageInfoDto dto) {
         pageInfoDtoThreadLocal.set(dto);
     }

     public static PageInfoDto get() {
         return pageInfoDtoThreadLocal.get();
     }

     public static void clean() {
         pageInfoDtoThreadLocal.remove();
     }
 }
